package com.hm.pan.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hm.pan.mapper.MessageMapper;
import com.hm.pan.model.Message;
import com.hm.pan.service.MessageService;
@Service
public class MessageServiceImpl implements MessageService {
	
	@Resource
	private MessageMapper messageMapper;

	@Override
	public List<Message> findAll() {
		return messageMapper.findAll();
	}

	@Override
	public List<Message> findByPage(Integer page) {
		return messageMapper.findByPage(page);
	}

	@Override
	public Integer count() {
		return messageMapper.count();
	}

	@Override
	public Boolean insertMessage(Message message) {
		return messageMapper.insertMessage(message);
	}

}
